<?php
/**
 * ExtDataView class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtDataView extends ExtDataViewBase
{
    /**
     * Gets the value of ExtJS blockRefresh property
     * @return Boolean 
     */
    public function getBlockRefresh()
    {
    	return $this->getConfig("blockrefresh");
    }

    /**
     * Sets the value of ExtJS blockRefresh property
     * @param Boolean $value 
     */
    public function setBlockRefresh($value)
    {
    	$this->setConfig("blockrefresh",$value);
    }

    /**
     * Gets the value of ExtJS deferEmptyText property
     * @return Boolean 
     */
    public function getDeferEmptyText()
    {
    	return $this->getConfig("deferemptytext");
    }

    /**
     * Sets the value of ExtJS deferEmptyText property
     * @param Boolean $value 
     */
    public function setDeferEmptyText($value)
    {
    	$this->setConfig("deferemptytext",$value);
    }

    /**
     * Gets the value of ExtJS emptyText property
     * @return String 
     */
    public function getEmptyText()
    {
    	return $this->getConfig("emptytext");
    }

    /**
     * Sets the value of ExtJS emptyText property
     * @param String $value 
     */
    public function setEmptyText($value)
    {
    	$this->setConfig("emptytext",$value);
    }

    /**
     * Gets the value of ExtJS itemSelector property
     * @return String 
     */
    public function getItemSelector()
    {
    	return $this->getConfig("itemselector");
    }

    /**
     * Sets the value of ExtJS itemSelector property
     * @param String $value 
     */
    public function setItemSelector($value)
    {
    	$this->setConfig("itemselector",$value);
    }

    /**
     * Gets the value of ExtJS loadingText property
     * @return String 
     */
    public function getLoadingText()
    {
    	return $this->getConfig("loadingtext");
    }

    /**
     * Sets the value of ExtJS loadingText property
     * @param String $value 
     */
    public function setLoadingText($value)
    {
    	$this->setConfig("loadingtext",$value);
    }

    /**
     * Gets the value of ExtJS multiSelect property
     * @return Boolean 
     */
    public function getMultiSelect()
    {
    	return $this->getConfig("multiselect");
    }

    /**
     * Sets the value of ExtJS multiSelect property
     * @param Boolean $value 
     */
    public function setMultiSelect($value)
    {
    	$this->setConfig("multiselect",$value);
    }

    /**
     * Gets the value of ExtJS overClass property
     * @return String 
     */
    public function getOverClass()
    {
    	return $this->getConfig("overclass");
    }

    /**
     * Sets the value of ExtJS overClass property
     * @param String $value 
     */
    public function setOverClass($value)
    {
    	$this->setConfig("overclass",$value);
    }

    /**
     * Gets the value of ExtJS selectedClass property
     * @return String 
     */
    public function getSelectedClass()
    {
    	return $this->getConfig("selectedclass");
    }

    /**
     * Sets the value of ExtJS selectedClass property
     * @param String $value 
     */
    public function setSelectedClass($value)
    {
    	$this->setConfig("selectedclass",$value);
    }

    /**
     * Gets the value of ExtJS simpleSelect property
     * @return Boolean 
     */
    public function getSimpleSelect()
    {
    	return $this->getConfig("simpleselect");
    }

    /**
     * Sets the value of ExtJS simpleSelect property
     * @param Boolean $value 
     */
    public function setSimpleSelect($value)
    {
    	$this->setConfig("simpleselect",$value);
    }

    /**
     * Gets the value of ExtJS singleSelect property
     * @return Boolean 
     */
    public function getSingleSelect()
    {
    	return $this->getConfig("singleselect");
    }

    /**
     * Sets the value of ExtJS singleSelect property
     * @param Boolean $value 
     */
    public function setSingleSelect($value)
    {
    	$this->setConfig("singleselect",$value);
    }

    /**
     * Gets the value of ExtJS store property
     * @return Ext.data.Store 
     */
    public function getStore()
    {
    	return $this->getConfig("store");
    }

    /**
     * Sets the value of ExtJS store property
     * @param Ext.data.Store $value 
     */
    public function setStore($value)
    {
    	$this->setConfig("store",$value);
    }

    /**
     * Gets the value of ExtJS tpl property
     * @return String/Array 
     */
    public function getTpl()
    {
    	return $this->getConfig("tpl");
    }

    /**
     * Sets the value of ExtJS tpl property
     * @param String/Array $value 
     */
    public function setTpl($value)
    {
    	$this->setConfig("tpl",$value);
    }

    /**
     * Gets the value of ExtJS trackOver property
     * @return Boolean 
     */
    public function getTrackOver()
    {
    	return $this->getConfig("trackover");
    }

    /**
     * Sets the value of ExtJS trackOver property
     * @param Boolean $value 
     */
    public function setTrackOver($value)
    {
    	$this->setConfig("trackover",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'blockrefresh' => 'blockRefresh',
            'deferemptytext' => 'deferEmptyText',
            'emptytext' => 'emptyText',
            'itemselector' => 'itemSelector',
            'loadingtext' => 'loadingText',
            'multiselect' => 'multiSelect',
            'overclass' => 'overClass',
            'selectedclass' => 'selectedClass',
            'simpleselect' => 'simpleSelect',
            'singleselect' => 'singleSelect',
            'trackover' => 'trackOver'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforeclick' => array('sender','index','node','e'),
            'beforeselect' => array('sender','node','selections'),
            'click' => array('sender','index','node','e'),
            'containerclick' => array('sender','e'),
            'containercontextmenu' => array('sender','e'),
            'contextmenu' => array('sender','index','node','e'),
            'dblclick' => array('sender','index','node','e'),
            'mouseenter' => array('sender','index','node','e'),
            'mouseleave' => array('sender','index','node','e'),
            'selectionchange' => array('sender','selections')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'template' => true,
            'containercontextmenu' => true
        ));
        $this->setXType('dataview');
        $this->setXClass('Ext.DataView');
    }    
}
?>